package com.atguigu.springcloud.mapper;

import com.atguigu.springcloud.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/08 11:03 周二
 * @description :
 */
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
    /**
     * 增加
     *
     * @param dept dept
     * @return boolean
     */
    boolean add(Dept dept);

    /**
     * 查询one
     *
     * @param id id
     * @return Dept
     */
    Dept findOne(@Param("id") Long id);

    /**
     * 查询所有
     *
     * @return Dept List
     */
    List<Dept> findAll();

}
